package com;

import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * Description:前5个号码是0-35之间的随机数，后2个号码是0-12之间的随机数
 * 共生成10组，从小到大排序
 * User: YJ
 * Date: 2024-3-28
 * Time: 14:56
 */
public class practice1 {


    public static void main(String[] args) {
        System.out.println(randomNum(0,35));
    }


    public static int randomNum(int min,int max) {
        Random random = new Random();
        int randomNumber = random.nextInt(max - min + 1) + min; // 生成[min, max]范围内的随机数字
        return randomNumber;
    }
}
